﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsUserControl
{
    public partial class UserControl4ButtonGroup : UserControl
    {
        public UserControl4ButtonGroup()
        {
            InitializeComponent();
        }
        int nCount = 0;
        private void button1_Click(object sender, EventArgs e)
        {
            nCount++;
            label1.Text = "" + nCount;
        }
        
    }
}
